package com.ebt.m.customer.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.ebt.m.R;
import com.ebt.m.data.entity.EntityCustomerNote;

/**
 * Created by Rick.Wang on 2016/4/12.
 */
public class CustomerItemNoteView extends FrameLayout implements View.OnClickListener {

    public CustomerItemNoteView(Context context) {
        this(context, null);
    }
    public CustomerItemNoteView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    private TextView sort_title_tv;
    private RelativeLayout customer_note_item_rl_bound;
    private TextView customer_note_item_description;
    private TextView customer_note_item_time;

    public CustomerItemNoteView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        View contentView = inflate(context, R.layout.view_customer_item_note, this);

        sort_title_tv = (TextView) contentView.findViewById(R.id.sort_title_tv);
        customer_note_item_rl_bound = (RelativeLayout) contentView.findViewById(R.id.customer_note_item_rl_bound);
        customer_note_item_description = (TextView) contentView.findViewById(R.id.customer_note_item_description);
        customer_note_item_time = (TextView) contentView.findViewById(R.id.customer_note_item_time);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {

        }
    }

    public void update(Object o) {
        EntityCustomerNote item = (EntityCustomerNote)o;

    }



}